package com.bcx.crm.spring.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by ys on 2018/1/8.
 */
//@ControllerAdvice
public class GlobalException {
    @ExceptionHandler(NullPointerException.class)
    public String nullException(){
        return "/crm/public/index";
    }
}
